package com.wl.dzt.ide.dto;

/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/7/5/005
 * @description 类字段实体, 封装数据表中列的源信息
 *
 */
public class ClassField {

    /**
     * 包名
     */
    private String page;

    /**
     * 类型
     */
    private String type;

    /**
     * 名字
     */
    private String name;

    /**
     * 数据库字段映射
     */
    private String dataBaseName;

    /**
     * 中文
     */
    private String cn;

    /**
     * 最大长度
     */
    private Integer maxLength;

    /**
     * 方法字段名
     */
    private String methodName;

    /**
     * 外键类
     */
    private String refClass;

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDataBaseName() {
        return dataBaseName;
    }

    public void setDataBaseName(String dataBaseName) {
        this.dataBaseName = dataBaseName;
    }

    public String getCn() {
        return cn;
    }

    public void setCn(String cn) {
        this.cn = cn;
    }

    public Integer getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(Integer maxLength) {
        this.maxLength = maxLength;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getRefClass() {
        return refClass;
    }

    public void setRefClass(String refClass) {
        this.refClass = refClass;
    }

    @Override
    public String toString() {
        return "ClassField{" +
                "page='" + page + '\'' +
                ", type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", dataBaseName='" + dataBaseName + '\'' +
                ", cn='" + cn + '\'' +
                ", maxLength=" + maxLength +
                ", methodName='" + methodName + '\'' +
                ", refClass='" + refClass + '\'' +
                '}';
    }
}
